<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
      <link rel="stylesheet" href="../lib/bootstrap/css/bootstrap.css">
    <script src="../lib/js/jquery.min.js"></script>
    <script src="../lib/bootstrap/js/bootstrap.js"></script>

    <!-- 引入layer -->
   <script src="../lib/layer/layer.js"></script>
    <style>
        *{margin: 0;padding: 0;list-style: none;}
     body{
         background:url(../img/logoin.jpg) no-repeat left;
         background-size: 370px;
         background-color: #e7e7e7;
     }
        ul>li{
          height: 50px;
          line-height: 50px;
          font-size: 20px;
          font-weight: bold;
          margin-right: 20px;
          float: left;
        }
        ul>li.current{
          border-bottom: 4px solid red;
        }
        ol>li{
          width: 100%;
          font-weight: bold;
          display: none;
        }
        ol>li.active{
          display: block;
      
        }
      </style>
</head>
<body>
    <div class="container">
<!-- 小米导航栏 -->
         <nav class="navbar navbar-default" style=" margin-left: 310px; margin-top: 10px;background-color: #e7e7e7;">
            <div class="container-fluid">
              <!-- Brand and toggle get grouped for better mobile display -->
              <div class="navbar-header">
                <button type="button" class="navbar-toggle collapsed" data-toggle="collapse" data-target="#bs-example-navbar-collapse-1" aria-expanded="false">
                  <span class="sr-only">Toggle navigation</span>
                  <span class="icon-bar"></span>
                  <span class="icon-bar"></span>
                  <span class="icon-bar"></span>
                </button>
                <a href="#">
                    <img src="../img/milogo.png" style="width: 40px;">
                </a>
              </div>
          
              <!-- Collect the nav links, forms, and other content for toggling -->
              <div class="collapse navbar-collapse" id="bs-example-navbar-collapse-1">
                <ul class="nav navbar-nav">
                  <li class="active"><a href="#">小米帐号 <span class="sr-only">(current)</span></a></li>
                </ul>
                <ul class="nav navbar-nav navbar-right">
                  <li><a href="#" style="font-size: 14px;">用户协议</a></li>
                  <li><a href="#"  style="font-size: 14px;">隐私政策</a></li>
                  <li><a href="#"  style="font-size: 14px;">帮助中心</a></li>
                  <li class="dropdown">
                      <select  style="font-size: 14px;  border: none;  outline: none;background-color: #e7e7e7;">
                          <option value="">‎中文(简体)‎ </option>
                          <option value="">中文(繁體)‎ </option>
                          <option>‎English</option>
                      </select>
                    <!-- <a href="#" class="dropdown-toggle" data-toggle="dropdown" role="button" aria-haspopup="true" aria-expanded="false">Dropdown <span class="caret"></span></a>
                    <ul class="dropdown-menu">
                      <li><a href="#">Action</a></li>
                      <li><a href="#">Another action</a></li>
                      <li><a href="#">Something else here</a></li>
                      <li role="separator" class="divider"></li>
                      <li><a href="#">Separated link</a></li> -->
                    </ul>
                  </li>
                </ul>
              </div><!-- /.navbar-collapse -->
            </div><!-- /.container-fluid -->
          </nav>
    </div>
  
    <div style=" width: 450px;height: 530px;
     margin: 0px auto;  margin-left: 540px;margin-top: -25px;
          overflow: hidden;">
        <ul style=" width: 100%;
        height: 50px; 
          ">
          <li><a href="./login.html" style="color: black; text-decoration: none;">登录</a></li>
          <li class="current">注册</li>
        </ul>
        <ol>
          <li  class="active">
              <!-- 注册页面 -->
              <div class="wrap" style="font-size: 12px;">
                <div class="content">
                    <!-- <h1 class="text-center">旅游网站 <small>注册页面</small></h1> -->
                    <form class="form-horizontal register">
                        <div class="form-group">
                            <label for="inputEmail3" class="col-sm-2 control-label">用户名</label>
                            <div class="col-sm-10">
                            <input type="text" name="username" class="form-control" placeholder="用户名">
                            </div>
                        </div>
                        <div class="form-group">
                            <label for="inputPassword3" class="col-sm-2 control-label">密码</label>
                            <div class="col-sm-10">
                            <input type="password" class="form-control" name="password" placeholder="密码">
                            </div>
                        </div>
                        <div class="form-group">
                            <label for="inputPassword3" class="col-sm-2 control-label">确认密码</label>
                            <div class="col-sm-10">
                            <input type="password" class="form-control" name="repass" placeholder="确认密码">
                            </div>
                        </div>
                        <div class="form-group">
                            <label for="inputPassword3" class="col-sm-2 control-label">邮箱</label>
                            <div class="col-sm-10">
                            <input type="text" class="form-control" name="email" placeholder="邮箱">
                            </div>
                        </div>
                        <div class="form-group">
                            <label for="inputPassword3" class="col-sm-2 control-label">手机号</label>
                            <div class="col-sm-10">
                            <input type="text" class="form-control" name="tel" placeholder="手机号">
                            </div>
                        </div>
                        <div class="form-group">
                            <div class="col-sm-offset-2 col-sm-10">
                            <div class="checkbox">
                                <label>
                                <input type="checkbox" name="agree"> 已阅读并同意小米帐号 <b>用户协议</b> 和 <b>隐私政策</b>
                                </label>
                            </div>
                            </div>
                        </div>
                        <div class="form-group">
                            <div class="col-sm-offset-2 col-sm-10">
                            <button type="button" class="btn btn-primary submit" style="width: 370px; height:60px;">注册</button>
                            </div>
                        </div>
                    </form>
                </div>
            </div>
          </li>
        </ol>
    </div>
</body>
</html>
<!-- <script>
    $('ul>li').click(function(){
      $(this)                 // 点击的元素
        .addClass('current')  // 添加current类名
        .siblings()           // 找到兄弟元素
        .removeClass('current')// 移除类名
        .parent()             // 找到父元素 ul
        .next()              // 找到下一个兄弟元素ol
        .find('li')           // 找到所有子元素中li
        .eq($(this).index())  // 根据点击的元素的索引，找到要显示的li
        .addClass('active')  // 添加active类名
        .siblings()          // 找到显示li的所有兄弟元素
        .removeClass('active');// 移除类名
    })
  
  
  
  
  
  
  
  </script> -->
  <script src="../js/ajax.js"></script>
  <script src="../js/register.js"></script>